package com.wang.spring.basic_di.g_complexfield;

import com.wang.spring.basic_di.g_complexfield.bean.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ComplexFieldApplication {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:basic_di/g_complexfield/complex-field.xml");
        Person person = ctx.getBean(Person.class);
        System.out.println(person);
    }
}
